<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>百度贴吧云签到-绑定邮箱</title>
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
    <link rel="stylesheet" href="../plugins/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="../plugins/adminLTE/css/AdminLTE.css">
    <link rel="stylesheet" href="../plugins/adminLTE/css/skins/_all-skins.min.css">
    <link rel="stylesheet" href="../css/style.css">
    <script src="../plugins/jQuery/jquery-2.2.3.min.js"></script>
    <script src="../plugins/bootstrap/js/bootstrap.min.js"></script>

    <script type="text/javascript" src="../plugins/angularjs/angular.min.js"></script>
    <!-- 分页组件开始 -->
    <script src="../plugins/angularjs/pagination.js"></script>
    <link rel="stylesheet" href="../plugins/angularjs/pagination.css">
    <!-- 分页组件结束 -->


    <script type="text/javascript" src="../js/base_pagination.js"></script>
    <script type="text/javascript" src="../js/service/tiebaService.js"></script>
    <script type="text/javascript" src="../js/controller/baseController.js"></script>
    <script type="text/javascript" src="../js/controller/tiebaController.js"></script>

</head>
<body class="hold-transition skin-red sidebar-mini" ng-app="tieba" ng-controller="tiebaController" >
<!-- .box-body -->
<div class="box-header with-border">
    <h2 class="box-title"><a href="tieba.html">贴吧云签到</a></h2>
</div>

<div class="box-body">

    <!-- 数据表格 -->
    <div class="table-box">

        <!--工具栏-->
        <div class="pull-left">
            <div class="form-group form-inline">
                <div class="btn-group">
                    <button type="button" class="btn btn-default" title="添加任务" data-toggle="modal"
                            data-target="#editModal"><i
                            class="fa fa-file-o"></i> 添加/修改邮箱
                    </button>
                    <a href="https://cway.top">
                        <button type="button" class="btn btn-default" title="返回"><i
                                class="fa fa-file-o"></i> 博客
                        </button>
                    </a>
                    <a href="https://cway.top/post/545.html">
                        <button type="button" class="btn btn-default" title="返回"><i
                                class="fa fa-file-o"></i> 帮助
                        </button>
                    </a>
                    <button type="button" class="btn btn-default" title="书签" ng-click="addfavorite()"><i
                            class="fa fa-file-o"></i> 书签
                    </button>
                </div>
                <div class="input-group input-group-sm">
                    <input type="text" class="form-control" placeholder="请输入QQ搜索" ng-model="searchEntity.qq">
                    <span class="input-group-btn">
								<button type="button" class="btn btn-info btn-flat" ng-click="searchEmail()">搜索</button>
							</span>
                </div>
            </div>
        </div>
        <div class="box-tools pull-right">
            <div class="has-feedback">
            </div>
        </div>
        <!--工具栏/-->

        <!--数据列表-->
        <table id="dataList" class="table table-bordered table-striped table-hover dataTable">
            <thead>
            <tr>
                <th class="sorting">QQ</th>
                <th class="sorting">我的邮箱</th>
                <th class="sorting">邮箱验证状态</th>
                <th class="sorting">上次修改/添加时间</th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>  {{entity.qq}}  </td>
                <td>  {{entity.email}}  </td>
                <td ng-if="entity.emailStatus==0">未验证</td>
                <td ng-if="entity.emailStatus==1">已验证</td>
                <td>  {{entity.activTime}}  </td>
                <!--<td><span ng-repeat="pojo in entity.unknown"><a href="http://tieba.baidu.com/f?kw={{pojo}}">{{pojo}}</a>&nbsp;&nbsp;</span></td>-->
            </tr>
            </tbody>
        </table>
        <!--数据列表/-->
    </div>
    <!-- 数据表格 /-->
    <!-- 分页 -->
    <tm-pagination conf="paginationConf"></tm-pagination>
</div>
<!-- /.box-body -->
<!--<div class="flyover" ng-show="loading">
    <div class="mask"></div>
    <div class="alert alert-info">
        <strong>Loading Foo...</strong>
    </div>
</div>-->
<!-- 编辑窗口 -->
<div class="modal fade" id="editModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h3 id="myModalLabel">绑定/修改邮箱</h3>
            </div>
            <div class="modal-body">

                <table class="table table-bordered table-striped" width="800px">
                    请输入您已添加任务的QQ为其绑定邮箱<br/>
                    QQ为大于5位的纯数字<br/>
                    邮箱暂不支持特殊字符邮箱地址
                    <tr>

                        <td>QQ:</td>

                        <td><input class="form-control" ng-model="entity.qq" placeholder=""></td>

                    </tr>
                    <tr>

                        <td>邮箱:</td>

                        <td><input class="form-control" ng-model="entity.email" placeholder=""></td>

                    </tr>

                </table>
            </div>
            <div class="modal-footer">
                <button class="btn btn-success" data-dismiss="modal" aria-hidden="true" ng-click="addEmail()">保存</button>
                <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">关闭</button>
            </div>
        </div>
    </div>
</div>

</body>
</html>
